package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName user_productInfo
 */
@TableName(value ="user_productInfo")
public class UserProductinfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String appid;

    /**
     * 
     */
    private String productinfo;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private String trainingid;

    /**
     * 
     */
    private String productmodel;

    /**
     * 
     */
    private String categorycode;

    /**
     * 
     */
    private String modelid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 
     */
    public String getProductinfo() {
        return productinfo;
    }

    /**
     * 
     */
    public void setProductinfo(String productinfo) {
        this.productinfo = productinfo;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    /**
     * 
     */
    public String getProductmodel() {
        return productmodel;
    }

    /**
     * 
     */
    public void setProductmodel(String productmodel) {
        this.productmodel = productmodel;
    }

    /**
     * 
     */
    public String getCategorycode() {
        return categorycode;
    }

    /**
     * 
     */
    public void setCategorycode(String categorycode) {
        this.categorycode = categorycode;
    }

    /**
     * 
     */
    public String getModelid() {
        return modelid;
    }

    /**
     * 
     */
    public void setModelid(String modelid) {
        this.modelid = modelid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserProductinfo other = (UserProductinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getProductinfo() == null ? other.getProductinfo() == null : this.getProductinfo().equals(other.getProductinfo()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()))
            && (this.getProductmodel() == null ? other.getProductmodel() == null : this.getProductmodel().equals(other.getProductmodel()))
            && (this.getCategorycode() == null ? other.getCategorycode() == null : this.getCategorycode().equals(other.getCategorycode()))
            && (this.getModelid() == null ? other.getModelid() == null : this.getModelid().equals(other.getModelid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getProductinfo() == null) ? 0 : getProductinfo().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        result = prime * result + ((getProductmodel() == null) ? 0 : getProductmodel().hashCode());
        result = prime * result + ((getCategorycode() == null) ? 0 : getCategorycode().hashCode());
        result = prime * result + ((getModelid() == null) ? 0 : getModelid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", appid=").append(appid);
        sb.append(", productinfo=").append(productinfo);
        sb.append(", userid=").append(userid);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", productmodel=").append(productmodel);
        sb.append(", categorycode=").append(categorycode);
        sb.append(", modelid=").append(modelid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}